﻿<%@ Page Title="LIMS | Add Member" Language="C#" MasterPageFile="~/LMIS_Master.Master" AutoEventWireup="true" CodeBehind="AddMember.aspx.cs" Inherits="LMIS_Application.members.AddMember" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent1" runat="server">
    <h2>Add Member</h2>
    <asp:ValidationSummary ID="ValSum" ValidationGroup="vg_AM" ShowSummary="true" DisplayMode="BulletList" HeaderText="There were some errors with your submission:" runat="server" />  
    <p>
        <label>Name:</label><br />
        <asp:TextBox ID="tb_AM_Name" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="Validator1" ControlToValidate="tb_AM_Name" SetFocusOnError="true" ErrorMessage="*" ValidationGroup="vg_AM" runat="server"></asp:RequiredFieldValidator>
    </p>
    <p>
        <label>Address:</label><br />
        <asp:TextBox ID="tb_AM_Address" runat="server" Rows="5" TextMode="MultiLine"></asp:TextBox>
        <asp:RequiredFieldValidator ID="Validator2" ControlToValidate="tb_AM_Address" SetFocusOnError="true" ErrorMessage="*" ValidationGroup="vg_AM" runat="server"></asp:RequiredFieldValidator>
    </p>
    <p>
        <label>Phone:</label><br />
        <asp:TextBox ID="tb_AM_Phone" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="Validator3" ControlToValidate="tb_AM_Phone" SetFocusOnError="true" ErrorMessage="*" ValidationGroup="vg_AM" runat="server"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="Validator4" ControlToValidate="tb_AM_Phone" runat="server" ValidationExpression="^[\d]{10,10}$" ErrorMessage="Phone must be exactly 10 chars" />
    </p>
    <p>
        <asp:Button ID="btnAddMember" Text="Add Member" ValidationGroup="vg_AM" 
            runat="server" onclick="btnAddMember_Click" />
    </p>
    <p id="msgSuccess" runat="server"></p>
</asp:Content>
